package com.anmi.transfer.service;

import com.anmi.alfred.entity.TransferCaseOperationResult;
import com.anmi.transfer.mapper.TransferCaseOperationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TransferCaseOperationService {

  @Autowired TransferCaseOperationMapper transferCaseOperationMapper;

  public TransferCaseOperationResult selectByCaseOperationId(Long id) {
    return transferCaseOperationMapper.selectByMap(id);
  }

  public List<TransferCaseOperationResult> selectByRelevance() {
    return transferCaseOperationMapper.selectByMap();
  }

  public Integer countByMap() {
    return transferCaseOperationMapper.countByMap();
  }

  public List<TransferCaseOperationResult> selectPage(int limit, int offset) {
    return transferCaseOperationMapper.selectPage(limit, offset);
  }
}
